// 绩效数据类型定义
export interface PerformanceData {
  recentDate: string
  position: string
  employeeName: string
  positionCoefficient: number
  baseCoefficient: number
  basePerformance: number
  scoreRank: number
  performanceScore: number
  score: number
  performanceType: string
}

// 绩效项目类型
export interface PerformanceItem {
  name: string
  key: string
  description?: string
}

// 绩效统计信息
export interface PerformanceStats {
  totalItems: number
  completedItems: number
  averageScore: number
  highestScore: number
  lowestScore: number
}

// 绩效查询参数
export interface PerformanceQueryParams {
  startDate?: string
  endDate?: string
  employeeId?: string
  position?: string
  performanceType?: string
}

// 绩效响应数据
export interface PerformanceResponse {
  success: boolean
  data: PerformanceData
  message?: string
}

// 批量绩效响应数据
export interface BatchPerformanceResponse {
  success: boolean
  data: Record<string, PerformanceData>
  message?: string
}

export interface Common<T> {
  code: number,
  data: T,
  msg: string
}